package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.factory.RemoteTeachingFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 日志服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteTeachingService", value = ServiceNameConstants.TEACHING_SERVICE, fallbackFactory = RemoteTeachingFallbackFactory.class)
public interface RemoteTeachingService
{
    @PostMapping("/daily_tasks/quartz")
    public R<Boolean> createDailyTask(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

//    @PutMapping("/daily_tasks/overdueDailies")
//    R<Void> overdueDailies();
}
